projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f77d51
)
(pos_visible_p): Handle case that we reach ZV without
author
Gerd Moellmann
<gerd@gnu.org>
Thu, 16 Nov 2000 05:05:12 +0000
(
05:05
+0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Thu, 16 Nov 2000 05:05:12 +0000
(
05:05
+0000)
knowing the line's height; use the default font's height in that
case.
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index c2ed64b1477c8d8daf94cf60dd9103d6f1490d5c..e75ae762687d8567ca75e4dd87271178e92f61a3 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-995,13
+995,15
@@
pos_visible_p (w, charpos, fully, exact_mode_line_heights_p)
{
if (last_height)
line_height = last_height;
- else
+ else
if (charpos < ZV)
{
move_it_by_lines (&it, 1, 1);
line_height = (it.max_ascent || it.max_descent
? it.max_ascent + it.max_descent
: last_height);
}
+ else
+ line_height = FONT_HEIGHT (FRAME_FONT (XFRAME (w->frame)));
}
line_bottom_y = line_top_y + line_height;